package com.geline.wordtool.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * 表字段
 *
 * @author: mx
 * @date: 2024-12-03 17:27
 */
@Getter
@Setter
public class TableColumn {

    //PRI主键，FK外键
    private String columnKey;
    //属性名
    private String name;
    //类型: varchar(30)
    private String fullType;
    //允许为空：YES, NO
    private String nullChar;
    //描述
    private String remark;
    //默认值
    private String defValue;

    public String getRemark() {
        if("PRI".equals(columnKey)){
            this.remark = "主键";
        }
        return remark;
    }
}
